home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / GPC2952B.ZIP / doc / gpc / docdemos / neardemo.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-02-09  |  254 b   |  17 lines

  1. program NearDemo;
  2.  
  3. var
  4.   p: procedure;
  5.  
  6. {$W-}  { Don't warn about the uselessness of `near' }
  7.  
  8. procedure Foo; near;  { `near' has no effect in GPC }
  9. begin
  10.   WriteLn ('Foo')
  11. end;
  12.  
  13. begin
  14.   p := Foo;  { Works, despite the `near'. }
  15.   p
  16. end.
  17.